package com.maxd.respository.msg;


import com.maxd.model.Msg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface MsgJpaRepository extends JpaRepository<Msg, Long> {

    Msg findByPhone(String phone);

    Msg findByPhoneAndCode(String code, String phone);

}
